package com.etc.dao;

import com.etc.entity.Types;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TypesDao {
    int deleteByPrimaryKey(Integer type_no);

    int insert(Types record);

    int insertSelective(Types record);

    Types selectByPrimaryKey(Integer type_no);

    int updateByPrimaryKeySelective(Types record);

    int updateByPrimaryKey(Types record);

    /**
     * 查询全部类型
     *
     * @return List<Types>
     */
    List<Types> queryAll();

    /**
     * 增加类型
     *
     * @param types 类型
     * @return int
     */
    int addType(Types types);
}